package com.chlitina.store.modules.inventory.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.inventory.entity.StoreInventoryInDetail;
public interface InventoryInDetailDao extends InventoryInDetailDaoCustom, CrudRepository<StoreInventoryInDetail, Long> {
	@Query("from StoreInventoryInDetail where SII_ID = ?1")
	public List<StoreInventoryInDetail> findListBySII(int storeInventoryInId);
}

/**
 * DAO自定义接口
 * @author Songsong.XU
 */
interface InventoryInDetailDaoCustom extends BaseDao<StoreInventoryInDetail> {

}

/**
 * DAO自定义接口实现
 * @author Songsong.XU
 */
@Component
class InventoryInDetailDaoImpl extends BaseDaoImpl<StoreInventoryInDetail> implements InventoryInDetailDaoCustom {

}
